<script type="text/javascript">
	function comment_click(){
		fullname = $("#cmfullname").val();
		email = $("#cmemail").val();
		addredd = $("#cmaddress").val();
		phone = $("#cmphone").val();

		message = "";

		if(fullname == "")
			message = "Tên bắt buộc phải nhập.";

		if(fullname == "" && email == "" && address == "" && phone == ""){
			message = message + "Bạn cần cung cấp ít nhất một trong các thông tin: Email, địa chỉ, số điện  thoại.";
		}

		if(message != ""){
			alert(message);
			$("#comment_form").hide();
			return;
		}

		var url_request = "<?php echo site_url('news/addComment'); ?>";
        $.ajax({
            type: "POST",
            url: url_request ,
            data: "news_id=" + $("#news_id").val()+ "&content="+ encodeURIComponent( $("#cmcontent").val()) + "&fullname="+ encodeURIComponent( $("#cmfullname").val()) + "&email="+ encodeURIComponent( $("#cmemail").val()) + "&address="+ encodeURIComponent( $("#cmaddress").val())+ "&phone="+ encodeURIComponent( $("#cmphone").val()),
            dataType: "json",
            success: function(msg){
                //if(msg.error == false)
                //$('#' + image_id).hide(1);
                alert(msg.para);
            },
            error : function(XMLHttpRequest, textStatus, errorThrown) {

                // $('#waiting').hide(500);
                // $('#message').removeClass().addClass('error').text('There was an error.').show(500);
                // $('#demoForm').show(500);
                alert( "Error: Delete image not successfull." + error.empty);
            }
        });
	}
</script>
<div class="cat_title">
    	<h2 class="upper blue">{parent_cname}</h2>
        <p class="cat_subtitle"><strong class="blue">></strong> <a class="upper red">{child_cname}</a></p>
        <!-- <div class="fltrt disable date">Thứ sáu, 30/3/2012, 16:10 GMT+7</div>  -->
    </div>
    <div class="big_inner_box">
         
         <div class="box_shadow">
         <div class="email-print " style="text-align:right">
		<script>
        writeSociable('','','sociable',1002261621);
        </script><a title="Facebook" onfocus="this.blur();" href="#" target="_blank" id="facebook" rel="nofollow"><img class="sociable-hovers" alt="Facebook" title="Facebook" src="{base_url}/images/facebooks.png"></a>&nbsp;&nbsp;<a onfocus="this.blur();" title="Twitter" href="" target="_blank" id="twitter" rel="nofollow"><img class="sociable-hovers" alt="Twitter" title="Twitter" src="{base_url}/images/twitters.png"></a>&nbsp;&nbsp;<a title="Google Bookmarks" onfocus="this.blur();" href="" target="_blank" id="google" rel="nofollow"><img class="sociable-hovers" alt="Google Bookmarks" title="Google Bookmarks" src="{base_url}/images/googles.png"></a>&nbsp;&nbsp;
    <font onclick="return EmailSubject(1002261621)"><img border="0" src="{base_url}/images/email.gif" align="bottom">&nbsp;E-mail</font>
    &nbsp;&nbsp;&nbsp;<font onclick="return PrintSubject()"><img border="0" src="{base_url}/images/print.gif" align="bottom">&nbsp;Bản In</font>
    </div>
          <h1><a class="blue new_news" href=""><strong>{vi_name}</strong></a> </h1>
          <div class="med_summary"> 
                   
          {vi_description}
	<input type="hidden" id="news_id" value="{id_news}" />
	<div class="clearfloat"></div>
	
          </div>
         </div> 
         
         <div class="tag">
         	<div class="tag_content"><a href="#">vàng</a>,<a href="#">chứng khoán</a>,<a href="#">biên độ giao dịch</a>,<a href="#">chuyên nghành</a></div>
         </div>
         
         <div class="comment">
         	<p class="blue comment_title">Ý kiến bạn đọc ( {numcomment} )</p>
         	<div class="comment_content">
            	<ul class="comment_list">
            		{comments}
                	<li class="{class}">
                    	<p><strong>{fullname}</strong></p>
                        {content}
                        <br><a href="#">&nbsp;</a><em class="disable date">{date_create}</em>
                    </li>
                    {/comments}
                    
                </ul>
                
            </div>
         </div>
         <div id="comment_box">
        	<h3 class="blue">Bình luận</h3>
            <p class="user upper"><img src="{base_url}/images/user.png"/><a href="javascript:void(0);">Logout</a></p>
            <textarea rows="5" cols="70" id="cmcontent" name="cmcontent" placeholder="Vui lòng nhập nội dung liên hệ vào đây"></textarea>
            <a class="btn fltrt" href="javascript:void(0);" id="comment_send">Gửi</a>
        </div>
         
         
         <div class="clearfloat"></div>
         
          <div class="cat_title">
            <h3 class="upper blue">Các tin khác</h3>            
        </div>
         <ul class="featured_list inner_box">
          {other_news}
          <li><a href="{link}" rel="tooltip" title="{osummary}">{oname} <em class="disable">({date_add})</em></a> </li>
          {/other_news}
          
         </ul>
         <div class="clearfloat"></div>
         
         
  
         </div>